package cc.ttiot.mapper.dto;

import lombok.Data;
import lombok.NoArgsConstructor;

import static cc.ttiot.enums.TablesInfo.Camera;

/**
 * @Description: TODO
 * @Author WangSuheng
 * @Date 2021/11/22 21:00
 * @Version 1.0
 */
@Data
@NoArgsConstructor
public class Picture {
    public final int sensorId = Camera.getTableId(); //传感器id: 5

    //private int id;     //存入数据库approaching_switch_msg表的数据编号

    private String picture;    //防护门开闭状态：0为闭 1为开

    private String time;  //时间: yyyy-MM-dd hh-mm-ss.SSS

    public Picture(String picture, String time) {
        this.picture = picture;
        this.time = time;
    }

    @Override
    public String toString() {
        return "Picture{" +
                "sensorId=" + sensorId +
                ", picture='" + picture + '\'' +
                ", time='" + time + '\'' +
                '}';
    }
}
